package cn.learn.athena.dao;


import cn.learn.athena.model.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author zlj
 * @Date 2018/10/29
 * @des
 */
public interface UserDao extends BaseDao<User> {

    /**
    * 功能:
    * 用户名和密码查询用户
    * @param loginName
    * @param password
    * @return
    * @date 2018/11/10
    */
    User findUserByLoginNameAndPassword(@Param("loginName") String loginName , @Param("password") String password);

    User findUserByLoginName(@Param("loginName") String loginName );

}
